import request from '@/utils/request'

// 查询债券信息列表
export function getBondInfoList(query) {
    return request({
        url: '/bond/queryBondInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询债券行情列表
export function getBondPriceList(query) {
    return request({
        url: '/bond/queryBondPriceByPage.action',
        method: 'get',
        params: query
    })
}

// 查询债券行情曲线
export function getBondPriceCurve(query) {
    return request({
        url: '/bond/queryBondPriceCurve.action',
        method: 'get',
        params: query
    })
}

// 新增债券信息
export function addBondInfo(data) {
    return request({
        url: '/bond/insertBondInfo.action',
        method: 'post',
        data: data
    })
}

// 修改债券信息
export function updateBondInfo(data) {
    return request({
        url: '/bond/updateBondInfo.action',
        method: 'put',
        data: data
    })
}

// 删除债券信息
export function delBondInfo(data) {
    return request({
        url: '/bond/deleteBondInfo.action',
        method: 'delete',
        data: data
    })
}

// 新增债券行情
export function addBondPrice(data) {
    return request({
        url: '/bond/insertBondPrice.action',
        method: 'post',
        data: data
    })
}

// 修改债券行情
export function updateBondPrice(data) {
    return request({
        url: '/bond/updateBondPrice.action',
        method: 'put',
        data: data
    })
}

// 删除债券行情
export function delBondPrice(data) {
    return request({
        url: '/bond/deleteBondPrice.action',
        method: 'delete',
        data: data
    })
}


